-- GENERATED SPELL FOR [Skhowl] --


function spell0_2452(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2452', 2258, 1)
end

function spell1_2452(pUnit, Event) --@Demoralizing Roar,Self--
pUnit:FullCastSpellOnTarget(15971,pUnit)
pUnit:RegisterEvent('Sorts_2452', 30325, 1)
end

function spell2_2452(pUnit, Event) --@Intimidating Roar,n/a--
pUnit:FullCastSpellOnTarget(16508,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2452', 8323, 1)
end

function Sorts_2452(pUnit, Event)
local choix_sorts_2452 = math.random(0, 2)
if choix_sorts_2452 == 0 then
pUnit:RegisterEvent('spell0_2452', 1, 1)
end
if choix_sorts_2452 == 1 then
pUnit:RegisterEvent('spell1_2452', 1, 1)
end
if choix_sorts_2452 == 2 then
pUnit:RegisterEvent('spell2_2452', 1, 1)
end
end

function mob2452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2452', math.random(1500, 3000), 1)
end

function mob2452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2452, 1, 'mob2452_Action')
RegisterUnitEvent(2452, 2, 'mob2452_Leave')
RegisterUnitEvent(2452, 3, 'mob2452_Kill')
RegisterUnitEvent(2452, 4, 'mob2452_Die')
